package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description: 启动器 D
 * ruidDataSourceAutoConfigure在DynamciDataSourceAutoConfiguration之前，
 * 其会注入一个DataSourceWrapper，
 * 会在原生的spring.datasource下找url,username,password等。
 * 方式之一添加：@EnableAutoConfiguration(exclude = {DruidDataSourceAutoConfigure.class})
 * @author: GuoTong
 * @createTime: 2021-06-23 13:55
 * @since JDK 1.8 OR 11
 **/
@SpringBootApplication
@EnableTransactionManagement //1.开始事物声明式注解处理
public class ApplicationRun {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationRun.class, args);
    }
}
